home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
pcgames
/
EMERGY
/
DX5SDK
/
SDK
/
SAMPLES
/
SCRAWL
/
readme.txt
Wrap
Text File
|
1997-07-14
|
698b
|
24 lines
Basic demonstration of DirectInput exclusive mouse usage. Lets
you draw on the screen with the mouse. Note that this is not
particularly well-suited to DirectInput because the app acts
pretty much like a normal Windows application, but at least you
can see how the calls are made. Right-click to display a menu
of options.
This sample program demonstrates the following:
* Creating interfaces to DirectInputDevice objects.
* Acquiring and unacquiring devices.
* Reading buffered device data.
* Event notifications for device activity.
* Restricting the mouse to an arbitrary region.
* Scaling raw mouse coordinates before using them.
* Use of relative axis mode.